package com.ruoyi.his.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.his.mapper.ReStreetMapper;
import com.ruoyi.his.domain.ReStreet;
import com.ruoyi.his.service.IReStreetService;

/**
 * 镇Service业务层处理
 *
 * @author Alan
 * @date 2024-03-09
 */
@Service
public class ReStreetServiceImpl implements IReStreetService
{
    @Autowired
    private ReStreetMapper reStreetMapper;

    /**
     * 查询镇
     *
     * @param code 镇主键
     * @return 镇
     */
    @Override
    public ReStreet selectReStreetByCode(String code)
    {
        return reStreetMapper.selectReStreetByCode(code);
    }

    /**
     * 查询镇列表
     *
     * @param reStreet 镇
     * @return 镇
     */
    @Override
    public List<ReStreet> selectReStreetList(ReStreet reStreet)
    {
        return reStreetMapper.selectReStreetList(reStreet);
    }

    /**
     * 新增镇
     *
     * @param reStreet 镇
     * @return 结果
     */
    @Override
    public int insertReStreet(ReStreet reStreet)
    {
        return reStreetMapper.insertReStreet(reStreet);
    }

    /**
     * 修改镇
     *
     * @param reStreet 镇
     * @return 结果
     */
    @Override
    public int updateReStreet(ReStreet reStreet)
    {
        return reStreetMapper.updateReStreet(reStreet);
    }

    /**
     * 批量删除镇
     *
     * @param codes 需要删除的镇主键
     * @return 结果
     */
    @Override
    public int deleteReStreetByCodes(String[] codes)
    {
        return reStreetMapper.deleteReStreetByCodes(codes);
    }

    /**
     * 删除镇信息
     *
     * @param code 镇主键
     * @return 结果
     */
    @Override
    public int deleteReStreetByCode(String code)
    {
        return reStreetMapper.deleteReStreetByCode(code);
    }
}
